﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMarketQualificationAddDetail.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OMarketQualificationAddDetail" %>
<style>
    p{
        border-style: dotted;
        border-width: 0 0 1px;
        clear: both;
        display: block;
        height: 1px;
        margin-bottom: 2px!important;;
        overflow: hidden;
        padding: 1px 0 0!important;;
        width: auto;
        border-color: #B8D0D6;
        width:340px!important;
    }
</style>
<div class="pageContent">
	<form id="Form1" action="MacModel/OMarketQualificationAddDetail.aspx?ajaxmethod=add&MQID=<%=MQID %>" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
    <div class="pageFormContent" layoutH="60">
        <table width="100%"> 
            <tr>  
                <td valign="top" width="365px">
                <div class="panel collapse" >
                <h1>验证物料相关信息</h1>
                <div>
			<p>
				<label>物料号：</label>
                <input type="text" name="ItemCode" disabled value="<%=obj2.ItemCode%>" />
			</p> 
            <p>
				<label>名称：</label>
                <input type="text" name="ItemName"  disabled value="<%=obj2.ItemName%>"/>
			</p>   
             <p>
				<label>旧件动态：</label>
                <input type="text" name="OldItemStatus" disabled class=""  value="<%=obj2.OldItemStatus %>"/>
			</p>
             <p>
				<label>验证状态：</label>
                <input type="checkbox" name="State"  disabled  value="true" <%=obj2.State?"checked":"" %>/>
                (打勾表示正在验证)
			</p>         
            <p>
				<label>供应商：</label>
                <input type="text" name="SupplerName"  disabled value="<%=obj2.SupplerName%>"/>
			</p> 
            <p>
				<label>机型：</label>
                 <%=GetMacType("select", "MachineType", obj2.MachineType)%>
                
			</p>
           <p>
				<label>机号：</label>
                <input type="text" name="SerialNumber" disabled value="<%=obj2.SerialNumber%>"/>
                
			</p>
             <p>
				<label>代理商：</label>
                <input type="text" name="AgentName" disabled value="<%=obj2.AgentName%>"/>
                
			</p>
            <p>
				<label>客户名称：</label>
                <input type="text" name="CustomerName" disabled value="<%=obj2.CustomerName%>"/>
                
			</p>
            <p>
				<label>手机：</label>
                <input type="text" name="CustomerMobile" disabled value="<%=obj2.CustomerMobile%>"/>
                
			</p>
            <p>
				<label>安装日期：</label>
                <input type="text" name="InsertDate" disabled value="<%=obj2.InsertDate%>"/>
                
			</p>
             <p>
				<label>小时数：</label>
                <input type="text" name="InsertHour" disabled value="<%=obj2.InsertHour %>"/>
			</p>
            </div>
           </div> 
           <div class="panel collapse" defH="105" >
                <h1>验证调查说明(技术部)：</h1>
                <div>
                    <%=obj2.VerifyRemark%>
                </div>
              </div>
            </td> 
            <td  valign="top">
                <div class="panel collapse" >
                    <h1>验证调查记录</h1>
                    <div>                
                        <p>
				            <label>调查时间：</label>
                            <input type="text" name="SurveyDate" class="date"  value="<%=DateTime.Now.ToString("yyyy-MM-dd") %>"/>                
			            </p>
                        <p>
				            <label>小时数：</label>
                            <input type="text" name="SurveyHour" class=""  value="0"/>                
			            </p>
                        <p>
				            <label>状态：</label>
                            <input type="checkbox" name="SurveyState" class=""  checked value="true"/>(正常)               
			            </p>
                       <dl class="nowrap">
                        <dt>结果说明:</dt>
                       </dl>
                        <textarea name="SurveyRemark"  cols="50" rows="5" ></textarea>
                    </div>
                </div>
                <div class="panel collapse" defH="210" minH="210">
                    <h1>验证调查历史记录</h1>
                    <div>
                     <asp:repeater id="rpVerify" runat="server">      
                     <ItemTemplate>
                        <h2 style=" line-height:21px; border-bottom:1px solid #B8D0D6; color:Red;">第[<%# Eval("VerifyTime")%>]次调查</h2>
                        <table class="list" width="95%" style=" margin-bottom:3px;">
                            <tr>
                                <td width="80px" style="font-weight:bold;">调查时间</td><td><%# Convert.ToDateTime( Eval("SurveyDate")).ToString("yyyy-MM-dd")%></td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">小时数</td><td><%# Eval("SurveyHour")%></td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">状态</td><td><%# Convert.ToBoolean(Eval("SurveyState")) ? "正常" : "<b style='color:red;'>不正常</b>"%></td>
                            </tr>
                            <tr>
                                <td valign="top" style="font-weight:bold;">结果说明</td><td valign="top"><%# Eval("SurveyRemark")%></td>
                            </tr>
                        </table>
                     </ItemTemplate>
                     </asp:repeater>
                    </div>
                </div>
            </td>
            </tr>  
        </table>
    </div>
    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
</div>